-- CALC_INTRUDE_MONSTER_GOLD_BONUS

-- 计算乱入怪金币奖励
-- @param user     玩家对象
return function(user)
    local layer = DungeonM.currentLayer();
    local rand  = DungeonM.getRandSeed("intrude_monster_gold");
    local count;
    if layer < 25 then
        count = 15000 + rand % 10000;
    elseif layer < 50 then
        count = 25000 + rand % 10000;
    else
        count = 35000 + rand % 10000;
    end

    return { 2, "money", count };
end